﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Configuration;

namespace ZJFramework.Data
{
    public class ConfigurationHelper
    {
        public static string GetConfigurationFile(string appSection)
        {
            string configFile = appSection;
            configFile = System.Configuration.ConfigurationManager.AppSettings[appSection];

            return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, configFile.Replace('/', '\\').TrimStart('\\'));
        }
    }
}
